package July;

import java.math.BigInteger;

public class Test03BigInteger {
    public static void main(String[] args) {
        BigInteger bigInteger = new BigInteger("1111", 2);
        System.out.println(bigInteger);
        BigInteger bd1=BigInteger.valueOf(10);
        BigInteger bd2=BigInteger.valueOf(3);
        BigInteger[] bigIntegers = bd1.divideAndRemainder(bd2);
        System.out.println(bigIntegers[0]);
        System.out.println(bigIntegers[1]);

        String qq="1234567";
        //正则表达式
        System.out.println(qq.matches("[1-9]\\d{5,19}"));


    }
}
